﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using IDAL;
using Factory;

namespace BLL
{
    public class B_ExperienceCom : IExperienceCom
    {
        public void Add(EperienceCom obj)
        {
            CreateFactory.GetExperienceCom().Add(obj);
        }

        public void Delete(int id)
        {
            CreateFactory.GetExperienceCom().Delete(id);
        }

        public EperienceCom FindById(int id)
        {
            return CreateFactory.GetExperienceCom().FindById(id);
        }

        public List<EperienceCom> GetAll()
        {
            return CreateFactory.GetExperienceCom().GetAll();
        }

        public void Update(int id, EperienceCom obj)
        {
            CreateFactory.GetExperienceCom().Update(id,obj);
        }
    }
}
